package com.project.bean;

/**
 * 订单明细实体类
 */
public class OrderDetailBean {
    /**
     * 明细编号
     */
    private Integer detailId;
    /**
     * 商品编号
     */
    private Integer goodsId;
    /**
     * 商品数量
     */
    private Integer number;
    /**
     * 所属订单编号
     */
    private Integer orderId;

    public OrderDetailBean() {
    }

    public OrderDetailBean(Integer goodsId, Integer number) {
        this.goodsId = goodsId;
        this.number = number;
    }

    public Integer getDetailId() {
        return detailId;
    }

    public void setDetailId(Integer detailId) {
        this.detailId = detailId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return "OrderDetailBean{" +
                "detailId=" + detailId +
                ", goodsId=" + goodsId +
                ", number=" + number +
                ", orderId=" + orderId +
                "}\n";
    }
}
